﻿CREATE TABLE [ProductImage].[ProductImageSize]
(
	[TenantId] [uniqueidentifier] NOT NULL,
	[SizeId] [uniqueidentifier] NOT NULL,
	[WellKnownSizeCode] [tinyint] NOT NULL,
	[Width] [smallint] NOT NULL,
	[Height] [smallint] NOT NULL,
	[DisplayOrder] [int] NOT NULL,
	[DefaultName] [ProductImage].[TProductImageSizeName] NOT NULL,
	[DefaultMissingImagePath] [ProductImage].[TProductImageSizeMissingImagePath] NOT NULL,
	CONSTRAINT [PK_ProductImageSize] PRIMARY KEY CLUSTERED ([TenantId] ASC, [SizeId] ASC) ON [PRIMARY],
	CONSTRAINT [UQ_ProductImageSize_TenantId_WellKnownSizeCode] UNIQUE NONCLUSTERED ([TenantId] ASC, [WellKnownSizeCode] ASC) ON [PRIMARY]
) ON [PRIMARY]
